import request from '@/utils/request'

// 企业物流网点表列表查询
export function listExpressOutlets(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/list',
    method: 'get',
    params: query
  })
}

// 企业所有物流网点列表查询
export function listAllExpressOutlets(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/listAll',
    method: 'get',
    params: query
  })
}

// 保存/更新物流网点信息
export function saveEnterpriseExpressOutlets(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/saveEnterpriseExpressOutlets',
    method: 'get',
    params: query
  })
}

// 设置物流网点是否默认
export function updateExpressOutletsDefault(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/updateExpressOutletsDefault',
    method: 'get',
    params: query
  })
}

// 批量删除快递网点
export function batchDeleteExpressOutlets(data) {
  return request({
    url: '/user/enterpriseExpressOutlets/batchDeleteExpressOutlets',
    method: 'post',
    data: data
  })
}

// 企业物流默认网点列表查询
export function listDefaultExpressOutlets(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/listDefault',
    method: 'get',
    params: query
  })
}

// 同步面单服务
export function synFaceSheet(query) {
  return request({
    url: '/user/enterpriseExpressOutlets/synFaceSheet',
    method: 'get',
    params: query
  })
}
